{% block sw_generic_seo_general_card %}
<mt-card
    class="sw-generic-seo-general-card"
    position-identifier="sw-generic-seo-general-card"
    :title="$tc('sw-landing-page.base.seo.titleGeneralInformation')"
>
    <mt-text-field
        class="sw-generic-seo-general-card__seo-meta-title-input"
        maxlength="255"
        :model-value="seoMetaTitle"
        :label="$tc('sw-landing-page.base.seo.labelMetaTitle')"
        :help-text="$tc('sw-landing-page.base.seo.helpTextMetaTitle')"
        :placeholder="$tc('sw-landing-page.base.seo.placeholderMetaTitle')"
        @update:model-value="emitSeoMetaTitle"
    />

    <mt-text-field
        class="sw-generic-seo-general-card__seo-url-input"
        maxlength="255"
        :model-value="seoUrl"
        :label="$tc('sw-landing-page.base.seo.labelUrl')"
        :placeholder="$tc('sw-landing-page.base.seo.placeholderUrl')"
        @update:model-value="emitSeoUrl"
    />

    <mt-textarea
        class="sw-generic-seo-general-card__seo-meta-description-input"
        :model-value="seoMetaDescription"
        maxlength="255"
        :label="$tc('sw-landing-page.base.seo.labelMetaDescription')"
        :help-text="$tc('sw-landing-page.base.seo.helpTextMetaDescription')"
        :placeholder="$tc('sw-landing-page.base.seo.placeholderMetaDescription')"
        @update:model-value="emitSeoMetaDescription"
    />

    <div class="sw-generic-seo-general-card__google-preview-container">
        <div class="sw-generic-seo-general-card__google-preview-header">
            {{ $tc('sw-landing-page.base.seo.searchResultPreview') }}
        </div>

        <div class="sw-generic-seo-general-card__google-preview">
            <a
                class="sw-generic-seo-general-card__google-preview-link"
                href="#"
            >
                https://www.example.com &gt; {{ seoUrl }}
            </a>
            <h3 class="sw-generic-seo-general-card__google-preview-title">
                {{ seoMetaTitle }}
            </h3>
            <p class="sw-generic-seo-general-card__google-preview-description">
                {{ seoMetaDescription }}
            </p>
        </div>
    </div>
</mt-card>
{% endblock %}
